package com.example.tse.rbhttpservice.service.member.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.member.model.MemberCouponGetList;
/**
* 获取用户的优惠券列表，根据状态获取不同的列表
* @author wliu
* edit tse
*/
public class MemberCouponGetListResponse extends RudderResponse{

private List<MemberCouponGetList> getList = new ArrayList<MemberCouponGetList>();


/**
* @return getList
*/
public List<MemberCouponGetList> getGetList() {
return this.getList;
}

/**
* @return getList
*/
public void setGetList(List<MemberCouponGetList> getList) {
this.getList = getList;
}
/**
methodName    GetList
type          List<MemberCouponGetList>
name          getList
defaultType   new ArrayList<MemberCouponGetList>()
*/

/**


    private static void filterFor(MemberCouponGetList member) {
        if (member.getCouponId() == null) {
            member.setCouponId("");
        }
        if (member.getName() == null) {
            member.setName("");
        }
        if (member.getPrice() == null) {
            member.setPrice("");
        }
        if (member.getEndTime() == null) {
            member.setEndTime("");
        }
        if (member.getBeginTime() == null) {
            member.setBeginTime("");
        }
        if (member.getType() == null) {
            member.setType("");
        }
        if (member.getRule() == null) {
            member.setRule(new ArrayList<String>());
        }
    }

    public static void filter(MemberCouponGetListResponse member) {
        if (member.getGetList() == null) {
            member.setGetList(new ArrayList<MemberCouponGetList>());
        } else {
            for (MemberCouponGetList item : member.getGetList()) {
                filterFor(item);
            }
        }
    }

*/

}
